from marshmallow import Schema, fields, ValidationError, pre_load
from .models import Tag

class TagSchema(Schema):
    class Meta:
        fields=("name","status")
        excludes=()
        dump_only=("id")
        load_only=()

class TagUrlSchema(Schema):
    class Meta:
        fields=("title","url")
        excludes=()
        dump_only=("id")
        load_only=()
